﻿<telerik:RadMenuItem x:Class="StudentModule.Views.StudentManagerMenuView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                     xmlns:helper="clr-namespace:Infrastructure.Helpers;assembly=Infrastructure"
                     Header="Sinh viên">

    <telerik:RadMenuItem.Resources>
        <helper:VisibilityConverter x:Key="BooleanToVisibilityConverter" />
    </telerik:RadMenuItem.Resources>

    <telerik:RadMenuItem x:Name="menuItemThongTinSinhVien" Visibility="{Binding Path=IsChinhSua, Converter={StaticResource BooleanToVisibilityConverter},Mode=TwoWay}"
                         Header="Quản lý thông tin sinh viên" Command="{Binding ShowSearchSinhVienViewCommand}">
        <telerik:RadMenuItem.Icon>
            <Image Source="/Infrastructure;component/Images/MiniIcon/premium_support.png" Stretch="None"/>
        </telerik:RadMenuItem.Icon>
    </telerik:RadMenuItem>
    <telerik:RadMenuItem x:Name="menuItemImport" Header="Import" Visibility="{Binding Path=IsChinhSua, Converter={StaticResource BooleanToVisibilityConverter},Mode=TwoWay}">
        <telerik:RadMenuItem.Icon>
            <Image Source="../Images/Menu/1folder.png" Stretch="None"/>
        </telerik:RadMenuItem.Icon>
        <telerik:RadMenuItem x:Name="menuItemImportDanhSachSinhVien" Header="Danh sách sinh viên" Command="{Binding ShowImportSinhVienViewCommand}">
            <telerik:RadMenuItem.Icon>
                <Image Source="/Infrastructure;component/Images/MiniIcon/attributes_display.png" Stretch="None"/>
            </telerik:RadMenuItem.Icon>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem x:Name="menuItemImportVanBang" Header="Văn bằng" Command="{Binding ShowImportVanBangViewCommand}">
            <telerik:RadMenuItem.Icon>
                <Image Source="/Infrastructure;component/Images/MiniIcon/ssl_certificates.png" Stretch="None"/>
            </telerik:RadMenuItem.Icon>
        </telerik:RadMenuItem>
        <telerik:RadMenuItem x:Name="menuItemImportHinhAnh" Header="Hình ảnh" Command="{Binding ShowImportHinhAnhViewCommand}">
            <telerik:RadMenuItem.Icon>
                <Image Source="/Infrastructure;component/Images/MiniIcon/photo.png" Stretch="None"/>
            </telerik:RadMenuItem.Icon>
        </telerik:RadMenuItem>
    </telerik:RadMenuItem>
    <telerik:RadMenuItem x:Name="menuItemNhapLieu" Visibility="{Binding Path=IsNhapLieu, Converter={StaticResource BooleanToVisibilityConverter},Mode=TwoWay}"
                         Header="Nhập liệu sinh viên" Command="{Binding ShowBasicSearchSinhVienViewCommand}">
        <telerik:RadMenuItem.Icon>
            <Image Source="/Infrastructure;component/Images/MiniIcon/table_edit.png" Stretch="None"/>
        </telerik:RadMenuItem.Icon>
    </telerik:RadMenuItem>
    <telerik:RadMenuItem x:Name="menuItemEmail" Header="Gửi email" Visibility="{Binding Path=IsChinhSua, Converter={StaticResource BooleanToVisibilityConverter},Mode=TwoWay}">
        <telerik:RadMenuItem.Icon>
            <Image Source="/Infrastructure;component/Images/MiniIcon/email_go.png" Stretch="None"/>
        </telerik:RadMenuItem.Icon>
    </telerik:RadMenuItem>
</telerik:RadMenuItem>